<script type="text/javascript" src="js/mainsearch.js"></script>

<?php
	$searchBy = "not set";
	$searchText = "";
	if (isset($_POST['searchBy'])){
		$searchBy = $_POST['searchBy'];
	}
	if (isset($_POST['searchText'])){
	 $searchText = $_POST['searchText'];	
	}
	
?>
	
<div class="mainbanner">
  <div class="searchfrm">
  <div class="searchbox">
  <form id="searchForm" name="searchForm" method="post" action="/final/buyBooks.php">
 
 	<!-- add 'styled' class to expirement with customer dropdown -->
  <select id="searchBy" name="searchBy" class="mdropbox" style="border: none">
  <option name="null">Search by...</option>
  <option value="ISBN" <?php if ($searchBy == 'ISBN') echo 'selected="selected"';?> >ISBN</option>
      <option value="Title" <?php if ($searchBy == 'Title') echo 'selected="selected"';?>>Title</option>
      <option value="Author" <?php if ($searchBy == 'Author') echo 'selected="selected"';?>>Author</option>
      <option value="Keyword" <?php if ($searchBy == 'Keyword') echo 'selected="selected"';?> >Keyword</option>
</select>
 <span class="mdropimg"></span>

<!-- <input id="search" name="searchtxtbox" type="text" class="srchtxtbox" style="border: none"/> -->
 <input name="searchText" type="text" id="searchText" class="srchtxtbox" size="30" maxlength="30" value="<?php echo  $searchText; ?>"/>

<input type="image" src="images/searchbut2.png" class="submitsearch" name="Submit" id="Submit" value="" onclick="return validateFields(this);" border="0" />
<!-- <a href="javascript:validateFields(this);"><span class="submitsearch" style="border:0;"></span></a> -->
	
  </form>
  </div><!--searchbox-->
  </div><!--searchfrm-->
  </div><!--mainbanner-->